package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计划对象 mes_plan
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划id */
    private Integer id;

    /** 计划编码 */
    @Excel(name = "计划编码")
    private String planId;

    public String getOldPlanId() {
        return oldPlanId;
    }

    public void setOldPlanId(String oldPlanId) {
        this.oldPlanId = oldPlanId;
    }

    private String oldPlanId;

    /** 销售订单编码 */
    @Excel(name = "销售订单编码")
    private String sordId;

    /** 订单名 */
    @Excel(name = "订单名")
    private String sordName;

    /** 任务卡编码 */
    @Excel(name = "任务卡编码")
    private String taskCardId;

    /** 加工数量 */
    @Excel(name = "加工数量")
    private Long procNum;

    /** 物料计划编码 */
    @Excel(name = "物料计划编码")
    private String matPlan;

    /** 计划开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planStartTime;

    /** 计划结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planFinTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setPlanId(String planId) 
    {
        this.planId = planId;
    }

    public String getPlanId() 
    {
        return planId;
    }
    public void setSordId(String sordId) 
    {
        this.sordId = sordId;
    }

    public String getSordId() 
    {
        return sordId;
    }
    public void setSordName(String sordName) 
    {
        this.sordName = sordName;
    }

    public String getSordName() 
    {
        return sordName;
    }
    public void setTaskCardId(String taskCardId) 
    {
        this.taskCardId = taskCardId;
    }

    public String getTaskCardId() 
    {
        return taskCardId;
    }
    public void setProcNum(Long procNum) 
    {
        this.procNum = procNum;
    }

    public Long getProcNum() 
    {
        return procNum;
    }
    public void setMatPlan(String matPlan) 
    {
        this.matPlan = matPlan;
    }

    public String getMatPlan() 
    {
        return matPlan;
    }
    public void setPlanStartTime(Date planStartTime) 
    {
        this.planStartTime = planStartTime;
    }

    public Date getPlanStartTime() 
    {
        return planStartTime;
    }
    public void setPlanFinTime(Date planFinTime) 
    {
        this.planFinTime = planFinTime;
    }

    public Date getPlanFinTime() 
    {
        return planFinTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("planId", getPlanId())
            .append("sordId", getSordId())
            .append("sordName", getSordName())
            .append("taskCardId", getTaskCardId())
            .append("procNum", getProcNum())
            .append("matPlan", getMatPlan())
            .append("planStartTime", getPlanStartTime())
            .append("planFinTime", getPlanFinTime())
            .toString();
    }
}
